<?php

if (strpos($_SERVER['PHP_SELF'],basename(__FILE__)) !== false) {
  print "Direct module access forbidden.";
  exit;
}

// Global Datas
global $go_user,$lg;


// Screen
$o_ecran = new Ecran('E1','?module=issues&action=new');
// Toolbar
$o_toolb = new ToolBar('TB1');
	$o_toolb->Add( new BTool('ashow','?module=groups&action=choose&pmode=A'));
	$o_ecran->Add($o_toolb);
// First Block
$o_block = new Block('B1',$lg->select_group);
	// Groupe List
	$o_block->Add(new LParam('grpnm',false,false,true));
	if(isset($_GET['pmode']))
		$t_grpnm = $go_user->GetGroup('A');	
	else
		$t_grpnm = $go_user->GetGroup('V');
	$o_block->grpnm->SetList($t_grpnm );
	$o_block->grpnm->Add(new GButton('validate',null));
$o_ecran->Add($o_block);

echo $o_ecran->Display();
?>